﻿/**
 * @author ZhangHuihua@msn.com
 */
(function($){
	// jQuery validate
	$.extend($.validator.messages, {
		required: "蹇呭～瀛楁",
		remote: "璇蜂慨姝ｈ瀛楁",
		email: "璇疯緭鍏ユ纭牸寮忕殑鐢靛瓙闾欢",
		url: "璇疯緭鍏ュ悎娉旷殑缃戝潃",
		date: "璇疯緭鍏ュ悎娉旷殑镞ユ湡",
		dateISO: "璇疯緭鍏ュ悎娉旷殑镞ユ湡 (ISO).",
		number: "璇疯緭鍏ュ悎娉旷殑鏁板瓧",
		digits: "鍙兘杈揿叆鏁存暟",
		creditcard: "璇疯緭鍏ュ悎娉旷殑淇＄敤鍗″佛",
		equalTo: "璇峰啀娆¤緭鍏ョ浉鍚岀殑链?,
		accept: "璇疯緭鍏ユ嫢链夊悎娉曞悗缂€鍚岖殑瀛楃涓?,
		maxlength: $.validator.format("闀垮害链€澶氭槸 {0} 镄勫瓧绗︿覆"),
		minlength: $.validator.format("闀垮害链€灏戞槸 {0} 镄勫瓧绗︿覆"),
		rangelength: $.validator.format("闀垮害浠嬩簬 {0} 鍜?{1} 涔嬮棿镄勫瓧绗︿覆"),
		range: $.validator.format("璇疯緭鍏ヤ竴涓粙浜?{0} 鍜?{1} 涔嬮棿镄勫€?),
		max: $.validator.format("璇疯緭鍏ヤ竴涓渶澶т负 {0} 镄勫€?),
		min: $.validator.format("璇疯緭鍏ヤ竴涓渶灏忎负 {0} 镄勫€?),
		
		alphanumeric: "瀛楁瘝銆佹暟瀛椼€佷笅鍒掔嚎",
		lettersonly: "蹇呴』鏄瓧姣?,
		phone: "鏁板瓧銆佺┖镙笺€佹嫭鍙?
	});
	
	// DWZ regional
	$.setRegional("datepicker", {
		dayNames: ['镞?, '涓€', '浜?, '涓?, '锲?, '浜?, '鍏?],
		monthNames: ['涓€链?, '浜屾湀', '涓夋湀', '锲涙湀', '浜旀湀', '鍏湀', '涓冩湀', '鍏湀', '涔濇湀', '鍗佹湀', '鍗佷竴链?, '鍗佷簩链?]
	});
	$.setRegional("alertMsg", {
		title:{error:"阌栾", info:"鎻愮ず", warn:"璀﹀憡", correct:"鎴愬姛", confirm:"纭鎻愮ず"},
		butMsg:{ok:"纭畾", yes:"鏄?, no:"鍚?, cancel:"鍙栨秷"}
	});
})(jQuery);